/**
 * 
 */
package z.action;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * @author http://weibo.com/zhengll
 * @since 2011-3-23
 */
public class ActionSupport {
    public Context getContext() {
        return Context.getActionContext();
    }

    public boolean getRequestBoolean(String argName) {
        return getContext().getRequestBoolean(argName);
    }

    public Date getRequestDate(String argName) {
        return getContext().getRequestDate(argName);
    }

    public SimpleDateFormat getDetailFormat() {
        return getContext().getDetailFormat();
    }

    public Double getRequestDouble(String argName) {
        return getContext().getRequestDouble(argName);
    }

    public Double getRequestDouble(String argName, Double defaultValue) {
        return getContext().getRequestDouble(argName, defaultValue);
    }

    public Float getRequestFloat(String argName) {
        return getContext().getRequestFloat(argName);
    }

    public Float getRequestFloat(String argName, Float defaultValue) {
        return getContext().getRequestFloat(argName, defaultValue);
    }

    public Integer getRequestInteger(String argName) {
        return getContext().getRequestInteger(argName);
    }

    public Integer getRequestInteger(String argName, Integer defaultValue) {
        return getContext().getRequestInteger(argName, defaultValue);
    }

    public List<Integer> getRequestIntegerList(String argName) {
        return getContext().getRequestIntegerList(argName);
    }

    public Long getRequestLong(String argName) {
        return getContext().getRequestLong(argName);
    }

    public Long getRequestLong(String argName, Long defaultValue) {
        return getContext().getRequestLong(argName, defaultValue);
    }

    public List<Long> getRequestLongList(String argName) {
        return getContext().getRequestLongList(argName);
    }

    public SimpleDateFormat getNormalFormat() {
        return getContext().getNormalFormat();
    }

    public HttpServletRequest getRequest() {
        return getContext().getRequest();
    }

    public String getRequestIp() {
        return getContext().getRequestIp();
    }

    public HttpServletResponse getResponse() {
        return getContext().getResponse();
    }

    public HttpSession getSession() {
        return getContext().getSession();
    }

    public SimpleDateFormat getSimpleFormat() {
        return getContext().getSimpleFormat();
    }

    public String getRequestString(String argName) {
        return getContext().getRequestString(argName);
    }

    public String getRequestString(String argName, String defaultValue) {
        return getContext().getRequestString(argName, defaultValue);
    }
}
